centos7 : epel-release, libnss-mysql hint

# yum install epel-release

# yum install libnss-mysql

owl 2015-11-22 11.10.19 owl 2015-11-22 11.10.36

 

 

 

vi /etc/libnss-mysql-root.cfg 

------------------------------------

username    nss-root

password    passwd

------------------------------------

 

vi /etc/libnss-mysql.cfg 

------------------------------------

username    nss-user

password    passwd

------------------------------------

 

vi /etc/nsswitch.conf

------------------------------------

# passwd:    db files

# shadow:    db files

# group:     db files

passwd:     files sss mysql

shadow:     files sss mysql

group:      files sss mysql

------------------------------------

# getent passwd

# groups myid

# getent shadow | grep myid

------------------------------------